<html xmlns:th="https://www.thymeleaf.org">
<body>

<div>
    <span>我是首页(thymeleaf模板)</span>
    <div th:if="${message}">
        <h2 th:text="${message}"/>
    </div>

</div>

</body>
</html>